\documentclass[twoside,letterpaper,11pt]{article}

%% LaTeX - Article customise

%%% PACKAGES
%\usepackage{booktabs} % for much better looking tables
%\usepackage{array} % for better arrays (eg matrices) in maths
%\usepackage{paralist} % very flexible & customisable lists (eg. enumerate/itemize, etc.)
\usepackage{verbatim} % adds environment for commenting out blocks of text & for better verbatim
%\usepackage{sbfigure} % make it possible to include more than one captioned figure/table in a single float
% These packages are all incorporated in the memoir class to one degree or another...

%%% PAGE DIMENSIONS
\usepackage{geometry} % to change the page dimensions
\geometry{margin=0.8in} % for example, change the margins to 2 inches all round
%\geometry{landscape} % set up the page for landscape
% read geometry.pdf for detailed page layout information

%%% HEADERS & FOOTERS
\usepackage{fancyhdr} % This should be set AFTER setting up the page geometry
\pagestyle{fancy} % options: empty , plain , fancy
\renewcommand{\headrulewidth}{0pt} % customise the layout...
\lhead{}\chead{}\rhead{}
\lfoot{}\cfoot{\thepage}\rfoot{}

%%% SECTION TITLE APPEARANCE
%\usepackage{sectsty}
%\allsectionsfont{\sffamily\mdseries\upshape} % (See the fntguide.pdf for font help)
% (This matches ConTeXt defaults)

%%% ToC APPEARANCE
\usepackage[nottoc,notlof,notlot]{tocbibind} % Put the bibliography in the ToC
\usepackage[titles]{tocloft} % Alter the style of the Table of Contents
\renewcommand{\cftsecfont}{\rmfamily\mdseries\upshape}
\renewcommand{\cftsecpagefont}{\rmfamily\mdseries\upshape} % No bold!

%% END Article customise

\usepackage{amsmath}
\usepackage{times}
%\renewcommand{\tt}[1]{{\texttt {#1}}}
%\renewcommand{\tt}[1]{\rm #1}
\newcommand{\prevtmvversion}{0.65}
\newcommand{\tmvversion}{0.70}
\newcommand{\tmvmajorversion}{0}
\newcommand{\tmvminorversion}{70}
\newcommand{\tttmvversion}{\texttt \tmvversion}
\newcommand{\mygroupx}{tmv-discuss@googlegroups.com}
\newcommand{\mygroup}{\href{mailto:\mygroupx}{\texttt \mygroupx}}
\newcommand{\mygrouptt}{\texttt \mygroupx}
\newcommand{\mygroupannx}{tmv-announce@googlegroups.com}
\newcommand{\mygroupann}{\texttt \mygroupannx}
\newcommand{\myissuesx}{http://code.google.com/p/tmv-cpp/issues}
\newcommand{\myissues}{\url{\myissuesx}}
\newcommand{\websitex}{http://code.google.com/p/tmv-cpp/}
\newcommand{\website}{\url{\websitex}}
\newcommand{\altwebsitex}{https://sourceforge.net/projects/tmv-cpp/}
\newcommand{\altwebsite}{\url{\altwebsitex}}
\newcommand{\altemailx}{mike_jarvis@sourceforce.net}
\newcommand{\altemail}{\href{mailto:\altemailx}{\textt \altemailx}}

\usepackage[bookmarks,bookmarksnumbered]{hyperref}
\usepackage{listings}
\usepackage[usenames,dvips]{color}
\usepackage{makeidx}
\makeindex

\lstset{
language=C++,
basicstyle=\ttfamily, 
morecomment=[l][\color{blue}]{//},
morecomment=[l][\color{red}]{//!},
morekeywords={size_t},
showstringspaces=false,
morekeywords={ptrdiff_t, RAND_MAX},
keywordstyle=\color{Green},
%stringstyle=\color{Maroon},
%identifierstyle=\color{},
%classoffset=1,
%morekeywords={RAND_MAX},
%keywordstyle=\color{BrickRed},
}

%\renewcommand{\tt}[1]{{\texttt {#1}}}
%\newenvironment{tmvcode}{\endgraf\noindent \endgraf\verbatim}{\endverbatim} 
%\newcommand{\caret}{\mbox{$^{}$}}
%\newcommand{\inputcode}[1]{\verbatiminput{#1}}

\renewcommand{\tt}[1]{{\lstinline {#1}}}
\lstnewenvironment{tmvcode}{}{}
\newcommand{\inputcode}[1]{\lstinputlisting[basicstyle=\small,breaklines=true]{#1}}

\begin{document}

\title{Template Matrix/Vector Library for C++ \\ User Manual \\ Version \tmvversion}
\author{Mike Jarvis}
\date{February 18, 2012}
\maketitle

\tableofcontents

\newpage
\input{Overview}

\newpage
\input{Changes}

\newpage
\input{Obtain}

\newpage
\input{Vector}

\newpage
\input{Matrix}

\newpage
\input{DiagMatrix}

\newpage
\input{TriMatrix}

\newpage
\input{BandMatrix}

\newpage
\input{SymMatrix}

\newpage
\input{SymBandMatrix}

\newpage
\input{Permutation}

\newpage
\input{Error}

\newpage
\input{Eigen}

\newpage
\input{Decompositions}

\newpage
\input{IOStyle}

\newpage
\input{Example}

\newpage
\input{Bugs}

\newpage
\input{History}

\newpage
\input{License}

\newpage
\printindex

\end{document}


